package Mem;

import java.util.*;

public class CaretakerChess {

    private ArrayList<MementoChess> memlist = new ArrayList<MementoChess>();
    public void AddMem(MementoChess mem) {
        memlist.add(mem); 			// add mem to end of list.  (modifies list in place)

    }

    public MementoChess getMem(int i) {		// get mem from index.  (modifies list in place)
        return memlist.get(i);			// return mem at index.  (modifies list in place)
    }
}
